<?php 
class CounterHelper extends AppHelper {
	var $helpers = array('html');
    function image($number, $length, $theme = "classic") {
    	if (strlen($number) < $length) {
    		$number = str_repeat("0", $length - strlen($number)) . $number;
    		return "<img src='".Router::url("/libs/counters/") . "show.php?n={$number}&theme={$theme}'/>";
    	}
    }
}